package com.zelix;

import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.Vector;

final class hd
    implements Runnable
{

    private final yw a;
    private final bs b;
    private final Vector c;
    private final j2 d;
    private static String z[];

    hd(yw yw, bs bs1, Vector vector, j2 j2)
    {
        a = yw;
        b = bs1;
        c = vector;
        d = j2;
    }

    public void run()
    {
        ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
        PrintWriter printwriter = new PrintWriter(bytearrayoutputstream);
        try
        {
            ((i2) (d)).K.a(c, null, printwriter, b, a, ((h2) (d)).F);
            printwriter.close();
            String s = bytearrayoutputstream.toString();
            if(s.length() > -1)
                new a2(d, z[2], z[1], s, false, true, false);
        }
        catch(cc cc1)
        {
            b.b(z[3], cc1.getMessage());
        }
        catch(tb tb1)
        {
            b.b(z[0], tb1.getMessage());
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key =0x41;
                    break;
                case 1:
                    key =58;
                    break;
                case 2:
                    key =126;
                    break;
                case 3:
                    key =61;
                    break;
                default:
                    key =84;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static 
    {
        String as[];
        as = new String[4];
        as[0] = z("\004h,r\006{".toCharArray());
        as[1] = z("\025_\rIt\025H\027Pt\023_\016R&5\024P\023".toCharArray());
        as[2] = z("\025_\rIt5H\027Pt3_\016R&5".toCharArray());
        as[3] = z("\007s2xt\004h,r\006{".toCharArray());

        z = as;

    }
}